import java.util.Random;

public class array10 {
    public static void main(String[] args) {
      int[]arr={1,2,3,4,5};
        Random r =new Random();
        for (int i = 0; i < arr.length; i++) {
            int x =r.nextInt(arr.length);
            int t =arr[i];
            arr[i]=arr[x];
            arr[x]=t;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
